<template>
  <div class="home-bg">
    <h1 class="main-title">AI 应用主页</h1>
    <div class="app-cards">
      <div class="app-card card-1" @mouseover="hover1=true" @mouseleave="hover1=false" :class="{hover: hover1}">
        <div class="circle-img circle-1">
          <span class="circle-title">AI旅游大师</span>
        </div>
        <div class="app-info">
          <h2>AI旅游大师</h2>
          <p>智能定制旅行路线，随时随地畅聊旅游灵感，做你的专属AI旅行顾问。</p>
          <router-link to="/love-app"><button class="app-btn">进入体验</button></router-link>
        </div>
      </div>
      <div class="app-card card-2" @mouseover="hover2=true" @mouseleave="hover2=false" :class="{hover: hover2}">
        <div class="circle-img circle-2">
          <span class="circle-title">AI超级智能体</span>
        </div>
        <div class="app-info">
          <h2>AI超级智能体</h2>
          <p>多领域知识专家，复杂任务一站式解决，体验前所未有的AI交互。</p>
          <router-link to="/manus"><button class="app-btn">进入体验</button></router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const hover1 = ref(false)
const hover2 = ref(false)
</script>

<style scoped>
.home-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
  padding: 0;
}
.main-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
  margin: 48px 0 32px 0;
  letter-spacing: 4px;
  color: #2563eb;
  text-shadow: 0 2px 12px #bcdffb;
  animation: fadeInDown 1s;
}
.app-cards {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.app-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #bcdffb44;
  width: 340px;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s;
}
.app-card.hover {
  transform: translateY(-12px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px #60a5fa99;
}
.circle-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px #e0e6ed;
  border: 4px solid #e0e7ff;
  background: #f0fdfa;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  animation: float 2.5s infinite ease-in-out;
}
.circle-2 {
  border-color: #fef9c3;
  background: #fefce8;
}
.circle-title {
  display: block;
  font-size: 1.05rem;
  color: #222;
  font-weight: bold;
  margin-top: 22px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px #fff;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-info h2 {
  font-size: 1.35rem;
  color: #2563eb;
  margin-bottom: 8px;
  font-weight: bold;
  letter-spacing: 2px;
}
.app-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 18px;
  min-height: 48px;
  text-align: center;
}
.app-btn {
  background: linear-gradient(90deg, #3b82f6 60%, #60a5fa 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 1.08rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px #bcdffb44;
  transition: background 0.2s, transform 0.2s;
}
.app-btn:hover {
  background: linear-gradient(90deg, #2563eb 60%, #3b82f6 100%);
  transform: scale(1.07);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
</style> 